package cn.tutu.blockchain.minemachine.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

public class Minemachine {

	private String id; // ID
	@NotBlank(message = "用户ID不可为空")
	private String userId; // 用户ID
	@NotBlank(message = "矿机ID不可为空")
	private String mineMachineId; // 矿机ID
	private String status; // 矿机状态 Y:有效 N：失效
	private Date createDatetime; // 创建时间
	private Date lastUpdateDatetime;// 最后更新时间

	public Minemachine() {

	}

	public Minemachine(String minemachineId) {
		this.mineMachineId = minemachineId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMineMachineId() {
		return mineMachineId;
	}

	public void setMineMachineId(String mineMachineId) {
		this.mineMachineId = mineMachineId;
	}

	public Date getCreateDatetime() {
		return createDatetime;
	}

	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	public Date getLastUpdateDatetime() {
		return lastUpdateDatetime;
	}

	public void setLastUpdateDatetime(Date lastUpdateDatetime) {
		this.lastUpdateDatetime = lastUpdateDatetime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
